MCS_FLAGS = -debug
ASSEMBLY_NAME = Dashboard
ASSEMBLY = $(ASSEMBLY_NAME).dll

dashboarddir = $(pkglibdir)
dashboard_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

ASSEMBLY_REFERENCES =  \
	$(DBUSSHARP_LIBS) \
	-r:../Dashboard.Util/Dashboard.Util.dll \
	-r:Mono.Posix

ASSEMBLY_SOURCES =  \
	AssemblyInfo.cs \
	Dashboard/Clue.cs \
	Dashboard/ClueList.cs \
	Dashboard/ClueMessage.cs \
	Dashboard/Connection.cs \
	Dashboard/DBusConnection.cs \
	Dashboard/FileConnection.cs \
	Dashboard/Identifiable.cs \
	Dashboard/Match.cs \
	Dashboard/MatchMessage.cs \
	Dashboard/Message.cs \
	Dashboard/NotificationMessage.cs \
	Dashboard/Property.cs \
	Dashboard/PropertyList.cs \
	Dashboard/TcpConnection.cs \
	Dashboard/UnixConnection.cs \
	Dashboard/XmlConnectionHandler.cs

$(ASSEMBLY): $(ASSEMBLY_SOURCES)
	$(MCS) $(MCS_FLAGS) -target:library -out:$@ $(ASSEMBLY_REFERENCES) $(ASSEMBLY_SOURCES)

EXTRA_DIST = \
	$(ASSEMBLY_SOURCES) \
	AssemblyInfo.cs.in

CLEANFILES = $(ASSEMBLY) *.dll *.exe *.pidb
DISTCLEANFILES = *.mdb
MAINTAINERCLEANFILES = Makefile.in
